package priv.wangy.micro.common.po.http;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonView;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import priv.wangy.micro.common.po.http.rspn.view.DefaultView;

import java.util.List;

/**
 *@author wangy
 *@since 2024/9/5
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonView(DefaultView.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CommonNode {

    private String value;

    private String label;

    /**
     * 子节点
     */
    private List<CommonNode> children;

    /**
     *是否禁用
     */
    private boolean disabled;
    /**
     * 是否叶子
     */
    private boolean leaf;
}
